import request from '@/plugin/axios'

export function LoadMenu (data) {
  return request({
    url: '/class/list',
    method: 'get',
    data
  })
}

export function LoadTopMenu (data) {
  return request({
    url: '/class/list?type=2',
    method: 'get',
    data
  })
}

export function addMenu (data) {
  return request({
    url: '/class/add',
    method: 'post',
    data
  })
}

export function updateMenu (data) {
  return request({
    url: '/class/update',
    method: 'post',
    data
  })
}

export function delMenu (id) {
  return request({
    url: '/class/del/' + id,
    method: 'delete'
  })
}
